const server = {
  state: {
    url: {}
  },
  getters: {
    url: (state) => state.url
  },
  mutations: {
    SETSERVERURL: (state, url) => {
      state.url = { ...state.url, ...url }
    }
  },
  actions: {
    setServerUrl({ commit }, url) {
      commit('SETSERVERURL', url)
    }
  }
}

export default server
